<% if is_logged_in? %>
  <% semantic_navigation :main, :html => { :class => 'primary' } do |n| %>
    <%= n.group 'Student' do %>
      <%= n.item 'List student', :link => {:controller => '/admin/students', :action => 'index'} %>
      <%= n.item 'Add student', :link => {:controller => '/admin/students', :action => 'new'} %>
    <% end %>
    <%= n.group 'Banji' do %>
      <%= n.item 'List banji', :link => {:controller => '/admin/banjis', :action => 'index'} %>
      <%= n.item 'Add banji', :link => {:controller => '/admin/banjis', :action => 'new'} %>
    <% end %>
    <%= n.group 'Project' do %>
      <%= n.item 'List project', :link => {:controller => '/admin/projects', :action => 'index'} %>
      <%= n.item 'Add project', :link => {:controller => '/admin/projects', :action => 'new'} %>
    <% end %>
    <%= n.group 'Group' do %>
      <%= n.item 'List group', :link => {:controller => '/admin/groups', :action => 'index'} %>
      <%= n.item 'Add group', :link => {:controller => '/admin/groups', :action => 'new'} %>
    <% end %>
    <div class="secondary">
    <%= n.group 'Config' do %>
      <%= n.item 'List setting', :link => {:controller => '/admin/settings', :action => 'index'} %>
      <%= n.item 'Add setting', :link => {:controller => '/admin/settings', :action => 'new'} %>
    <% end %>
    <%= n.group 'User' do %>
      <%= n.item 'List user', :link => {:controller => '/admin/users', :action => 'index'} %>
      <%= n.item 'Add user', :link => {:controller => '/admin/users', :action => 'new'} %>
    <% end %>
    <%= n.group 'Althlete' do %>
      <%= n.item 'List althlete', :link => {:controller => '/admin/althletes', :action => 'index'} %>
      <%= n.item 'Add althlete', :link => {:controller => '/admin/althletes', :action => 'new'} %>
    <% end %>
    </div>   
  <% end %>
<% else %>
  <div></div>
<% end %>

